/*
 * @Description: 
 * @Autor: Bingo
 * @Date: 2024-08-29 16:21:56
 * @LastEditors: Bingo
 * @LastEditTime: 2024-09-02 15:36:19
 */
import { createApp } from "vue";
import { createPinia } from "pinia";
import "ant-design-vue/dist/reset.css";
import "@/style/index.less";
import { registerAnt } from "@/components/ant_design_comp";
import registerSelfComp from "@/components";
import vuexStore from '@store/index'
import { registerDirective } from "./directives";
import App from "./App.vue";
import router from "./route";

import { ct } from "./utils/common";

const app = createApp(App);

app.use(router);
// pinia 类似vuex 用于深层组件交互
app.use(createPinia());
app.use(vuexStore);
// 注册全局自定义指令
registerDirective(app);
// 注册第三方UI组件
registerAnt(app);
// 注册自封装组件
registerSelfComp(app);
// 注册全局Vue实例属性
// 注册全局函数
ct()
app.mount("#app");
